package com.itheima.dubbo.api;

import com.tanhua.model.enums.CommentType;
import com.tanhua.model.mongoDb.Comment;

import java.util.List;

/**
 * @Author Pan Rundong
 * @Date 2023-03-02 21:14
 * @Desc 评论Api
 */
public interface CommentsApi {
    /**
     * 获取动态评论
     *
     * @param movementId
     * @param comment
     * @param page
     * @param pagesize
     * @return java.util.List<com.tanhua.model.mongoDb.Comment>
     * @Author Pan Rundong
     */
    List<Comment> fingById(String movementId, CommentType comment, Integer page, Integer pagesize);

    /**
     * 发布评论
     *
     * @param comment
     * @return int
     * @Author Pan Rundong
     */
    int publish(Comment comment);

    /**
     * 删除评论
     *
     * @param comment
     * @return int
     * @Author Pan Rundong
     */
    int delete(Comment comment);
}
